<%--
  Created by IntelliJ IDEA.
  User: qi
  Date: 2022/5/7
  Time: 17:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="profileservlet?method=update" method="post">
    <table>
        <tr>
            <td>编号</td>
            <td>
                <input type="text" name="id" value="${profiles.id}">
            </td>
        </tr>
        <tr>
            <td>姓名</td>
            <td><input type="text" name="name" value="${profiles.name}"></td>
        </tr>
        <tr>
            <td>生日</td>
            <td><input type="date" name="birthday" value="${profiles.birthday}"></td>
        </tr>
        <tr>
            <td>性别</td>
            <td><input type="text" name="gender" value="${profiles.gender}"></td>
        </tr>
        <tr>
            <td>职业</td>
            <td><input type="text" name="career" value="${profiles.career}"></td>
        </tr>
        <tr>
            <td>住所</td>
            <td><input type="text" name="address" value="${profiles.address}"></td>
        </tr>
        <tr>
            <td>电话</td>
            <td><input type="text" name="mobile" value="${profiles.mobile}"></td>
        </tr>
        <tr>
            <td >
                <img src="${repageContext.request.contextPath}/imges/${profiles.picture}">
            </td>
            <td>
                <button type="button" name="uploadimages" >上传图片</button>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <button type="submit">提交</button>
            </td>
        </tr>
    </table>
</form>
<span style="color: crimson">${msg}</span>
</body>
</html>
